<!--{template common/header_ajax}-->
	<script type="text/javascript">
		if(!isUndefined(checkForumnew_handle)) {
			clearTimeout(checkForumnew_handle);
		}
		<!--{if $threadlist}-->
			if($('separatorline')) {
				var table = $('separatorline').parentNode;
			} else {
				var table = $('forum_' + $fid);
			}
			var newthread = [];
			<!--{eval $i = 0;}-->
			<!--{loop $threadlist $thread}-->
				newthread[{$i}] = {'tid':$thread[tid], 'thread': { <!--{if $_G['forum']['ismoderator']}-->'o':{'className':'o','val':'<input type="checkbox" value="{$thread[tid]}" name="moderate[]" onclick="tmodclick(this)">'},<!--{/if}--> 'v2-icn':{'className':'v2-icn','val':'<a href="home.php?mod=space&uid=$thread[authorid]" c="1"><img src="./uc_server/avatar.php?uid=$thread[authorid]&size=small" /></a>'}, 'common':{'className':'common','val':'<p class="v2-subj">$thread[threadurl]</p><p class="v2-subn">$thread[authorurl] <span class="v2-ftm">({$thread[dateline]})</span><span class="pipe">&bull;</span>$thread[lastposterurl] <span class="v2-ftm">({$thread[lastpost]})</span></p>'}, 'num':{'className':'v2-num','val':'<a href="forum.php?mod=viewthread&tid={$thread[tid]}">{$thread[replies]}</a><em>{$thread[views]}</em>'}}};
				<!--{eval $i++;}-->
			<!--{/loop}-->
			removetbodyrow(table, 'forumnewshow');
			for(var i = 0; i < newthread.length; i++) {
				if(newthread[i].tid) {
					addtbodyrow(table, ['tbody', 'newthread'], ['normalthread_', 'normalthread_'], 'separatorline', newthread[i]);
				}
			}
			function readthread(tid) {
				if($("checknewthread_"+tid)) {
					$("checknewthread_"+tid).className = "";
				}
			}
		<!--{elseif !$threadlist && $_GET['uncheck'] == 2}-->
			showDialog('{lang none_newthread}', 'notice', null, null, 0, null, null, null, null, 3);
		<!--{/if}-->
		checkForumnew_handle = setTimeout(function () {checkForumnew('{$fid}', '{$_G[timestamp]}');}, checkForumtimeout);
	</script>
<!--{template common/footer_ajax}-->